import {
  Button,
  Tabbar,
  TabbarItem,
  Loading,
  Image as VanImage,
  Icon,
  ImagePreview,
  Sidebar, SidebarItem,
  Badge,
  Cell, CellGroup,
  ActionBar, ActionBarIcon, ActionBarButton,
  SubmitBar,
  Checkbox, CheckboxGroup,
  Card,
  SwipeCell,
  Tag,
  Lazyload,
  Empty,
  NavBar
} from 'vant';

export function vant(app) {
  app.use(Tag);
  app.use(Card);
  app.use(Checkbox);
  app.use(CheckboxGroup);
  app.use(SubmitBar);
  app.use(ActionBarButton);
  app.use(ActionBarIcon);
  app.use(ActionBar);
  app.use(CellGroup);
  app.use(Cell);
  app.use(SwipeCell);
  app.use(ImagePreview);
  app.use(Badge);
  app.use(Icon);
  app.use(VanImage);
  app.use(Loading);
  app.use(Button);
  app.use(Tabbar);
  app.use(TabbarItem);
  app.use(Sidebar);
  app.use(SidebarItem);
  app.use(Lazyload);
  app.use(Empty);
  app.use(NavBar);
}
export default {
  components: {
    [ImagePreview.Component.name]: ImagePreview.Component,
  },
};